package com.cheyun.netsalev3.viewmodel

import android.app.Activity
import android.view.View
import com.cheyun.netsalev3.repository.LoginRepository
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.ObservableField
import androidx.lifecycle.MutableLiveData
import com.cheyun.netsalev3.utils.*
import com.cheyun.netsalev3.widget.PopDialog
import android.os.CountDownTimer
import android.widget.DatePicker
import com.cheyun.netsalev3.widget.DatePickerFragment
import com.jeremyliao.liveeventbus.LiveEventBus
import kotlin.math.log

class UserFaceActivityViewModel : BaseViewModel() {


    var headimg = MutableLiveData<String>()


    var activity: Activity? = null

    init {
        var loginData = MySharedPreferences.getLoginData()
        loginData?.apply {
            headimg.postValue(this.member.headimg)
        }
    }

    fun onClick(view:View,type:Int){
        if(type == 3){
            myFinish()
        }
        var content = view.context
        if (content is AppCompatActivity) {

        }
    }
}